from models.meta import BaseDocument, BaseEmbeddedDocument, fields


class Event(BaseDocument):
    meta = {'collection': 'scan_events', 'strict': False}

    target_id = fields.StringField(required=True)
    event_name = fields.StringField(required=True)
    detail = fields.DictField(required=True)
    user_id = fields.StringField(required=True)
    target_url = fields.StringField(required=True)
